package com.dx.common.table.ppt;

/**
 * AbstractRet_rul_setId entity provides the base persistence definition of the
 * Ret_rul_setId entity. @author MyEclipse Persistence Tools
 */

public class Ret_rul_setId implements java.io.Serializable {

	// Fields

	private String rul_mdl_id_fk;
	private String rul_mdl_ver_fk;
	private String so_seq_no_fk;

	// Constructors

	/** default constructor */
	public Ret_rul_setId() {
	}

	/** full constructor */
	public Ret_rul_setId(String rul_mdl_id_fk, String rul_mdl_ver_fk,
			String so_seq_no_fk) {
		this.rul_mdl_id_fk = rul_mdl_id_fk;
		this.rul_mdl_ver_fk = rul_mdl_ver_fk;
		this.so_seq_no_fk = so_seq_no_fk;
	}

	// Property accessors

	public String getRul_mdl_id_fk() {
		return this.rul_mdl_id_fk;
	}

	public void setRul_mdl_id_fk(String rul_mdl_id_fk) {
		this.rul_mdl_id_fk = rul_mdl_id_fk;
	}

	public String getRul_mdl_ver_fk() {
		return this.rul_mdl_ver_fk;
	}

	public void setRul_mdl_ver_fk(String rul_mdl_ver_fk) {
		this.rul_mdl_ver_fk = rul_mdl_ver_fk;
	}

	public String getSo_seq_no_fk() {
		return this.so_seq_no_fk;
	}

	public void setSo_seq_no_fk(String so_seq_no_fk) {
		this.so_seq_no_fk = so_seq_no_fk;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Ret_rul_setId))
			return false;
		Ret_rul_setId castOther = (Ret_rul_setId) other;

		return ((this.getRul_mdl_id_fk() == castOther.getRul_mdl_id_fk()) || (this
				.getRul_mdl_id_fk() != null
				&& castOther.getRul_mdl_id_fk() != null && this
				.getRul_mdl_id_fk().equals(castOther.getRul_mdl_id_fk())))
				&& ((this.getRul_mdl_ver_fk() == castOther.getRul_mdl_ver_fk()) || (this
						.getRul_mdl_ver_fk() != null
						&& castOther.getRul_mdl_ver_fk() != null && this
						.getRul_mdl_ver_fk().equals(
								castOther.getRul_mdl_ver_fk())))
				&& ((this.getSo_seq_no_fk() == castOther.getSo_seq_no_fk()) || (this
						.getSo_seq_no_fk() != null
						&& castOther.getSo_seq_no_fk() != null && this
						.getSo_seq_no_fk().equals(castOther.getSo_seq_no_fk())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getRul_mdl_id_fk() == null ? 0 : this.getRul_mdl_id_fk()
						.hashCode());
		result = 37
				* result
				+ (getRul_mdl_ver_fk() == null ? 0 : this.getRul_mdl_ver_fk()
						.hashCode());
		result = 37
				* result
				+ (getSo_seq_no_fk() == null ? 0 : this.getSo_seq_no_fk()
						.hashCode());
		return result;
	}

}